﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="DutyReport.aspx.cs" Inherits="SwenAssigment.DutyReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style6 {
            width: 461px;
        }
        .auto-style7 {
            width: 454px;
        }
        .auto-style8 {
            width: 434px;
        }
        .auto-style11 {
            width: 260px;
        }
        .auto-style12 {
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <H1>Duty Report</H1>
    <asp:Panel ID="Panel1" runat="server">
        <table style="width:100%;">
            <tr>
                <td class="auto-style12">&nbsp;</td>
                <td class="auto-style11">&nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style12">Day:</td>
                <td class="auto-style11">
                    <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" ValidationGroup="s"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage="*Required" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Calendar ID="Calendar1" runat="server" OnDayRender="Calendar1_DayRender" OnSelectionChanged="Calendar1_SelectionChanged"></asp:Calendar>
                </td>
                <td>
                    <asp:Button ID="Button4" runat="server" Text="Search" OnClick="Button4_Click" ValidationGroup="s" />
                </td>
            </tr>
            <tr>
                <td class="auto-style12" colspan="3">
                    <p>
                        Year:
                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Display All" />
                    </p>
                </td>
            </tr>
            <tr>
                <td class="auto-style12">Month:</td>
                <td class="auto-style11">
                    <asp:ListBox ID="ListBox1" runat="server">
                        <asp:ListItem Value="1">Jan</asp:ListItem>
                        <asp:ListItem Value="2">Feb</asp:ListItem>
                        <asp:ListItem Value="3">Mar</asp:ListItem>
                        <asp:ListItem Value="4">Apr</asp:ListItem>
                        <asp:ListItem Value="5">May</asp:ListItem>
                        <asp:ListItem Value="6">June</asp:ListItem>
                        <asp:ListItem Value="7">July</asp:ListItem>
                        <asp:ListItem Value="8">Aug</asp:ListItem>
                        <asp:ListItem Value="9">Sep</asp:ListItem>
                        <asp:ListItem Value="10">Oct</asp:ListItem>
                        <asp:ListItem Value="11">Nov</asp:ListItem>
                        <asp:ListItem Value="12">Dec</asp:ListItem>
                    </asp:ListBox>
                    <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*Require" Visible="False"></asp:Label>
                </td>
                <td>
                    <asp:Button ID="Button5" runat="server" Text="Search" OnClick="Button5_Click" />
                </td>
            </tr>
            <tr>
                <td class="auto-style12">Week</td>
                <td class="auto-style11">
                    <asp:ListBox ID="ListBox2" runat="server"></asp:ListBox>
                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*Require" Visible="False"></asp:Label>
                </td>
                <td>
                    <asp:Button ID="Button6" runat="server" Text="Search" OnClick="Button6_Click" />
                </td>
            </tr>
        </table>

    </asp:Panel>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="DutyId ">
        <Columns>
            <asp:BoundField DataField="DutyId" HeaderText="Id" />
            <asp:BoundField DataField="Date" DataFormatString="{0:MMMM d, yyyy}" HeaderText="Date " />
            <asp:BoundField DataField="GenList" HeaderText="General Maintenance" />
            <asp:BoundField DataField="EstateList" HeaderText="Estate Maintenance" />
            <asp:BoundField DataField="RoomList" HeaderText="Room Maintenance" />
            <asp:BoundField DataField="SecurityList" HeaderText="Security Maintenance" />
        </Columns>
        <EmptyDataTemplate>
            There is no Duty
        </EmptyDataTemplate>
</asp:GridView>
    <br />
    <div>

&nbsp;<asp:Button ID="Button8" runat="server" OnClick="Button8_Click" Text="Excel" />

    </div>
</asp:Content>
